-
Notifications
You must be signed in to change notification settings - Fork 377
Improve linting #2787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve linting #2787
Conversation
|
PatternFly-React preview: https://patternfly-react-pr-2787.surge.sh |
abf2a28 to
f977a76
Compare
840d7d7 to
2f37fdd
Compare
d73cb41 to
3d246a8
Compare
3d246a8 to
cd7826b
Compare
mturley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly this looks good, but there's still some weird indentation going on. I'll take a look at the config and come back to it. We can go ahead and merge now if you want, if so I'll address the indentation in another PR.
| position: DropdownPosition.left, | ||
| onSelect: (_event: any): any => undefined, | ||
| onToggle: (_value: boolean): any => undefined, | ||
| "className": '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit weird, what rule added quotes to all of these defaultProps? I wonder why it didn't do the same to all the others?
| isRead = false, | ||
| className = '', | ||
| children = '', | ||
| ...props }: BadgeProps) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still some weird spacing going on here.
| export interface CardHeaderProps extends React.HTMLProps<HTMLDivElement> { | ||
| /** Content rendered inside the Card Footer */ | ||
| children?: React.ReactNode; | ||
| children?: React.ReactNode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's interesting that TSLint is ok with 4-space indentation here and 2-space indentation everywhere else. Maybe that's just something it can't automatically --fix?
| }: ChipButtonProps) => { | ||
| return ( | ||
| <Button variant="plain" aria-label={ariaLabel} onClick={onClick} className={className} {...props}> | ||
| {children} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Spacing here is still all messed up. I'll take a look at the config
|
Yeah, weirdly enough we have |
|
Yikes. @redallen, this Maybe that's reason enough to switch to |
mturley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, we'll fix these issues in the next one. Thanks @redallen!
What:
Closes #2362
cc @mturley
Additional issues: